package pro.cherish.knowledgeobjectstorage.config.storageConfig;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "cherishmall.storage")
@PropertySource(value = "classpath:application-storage.properties")
@Data
public class StorageProperties {
  private String active;
  @Autowired private LocalProperties localProperties;
  @Autowired private QiniuProperties qiniuProperties;
  @Autowired private MinioProperties monioProperties;

  public String getActive() {
    return active;
  }

}
